package com.yanqu.road.entity.activity.unionChest;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


@FieldTypeAnnotation(tableName = "t_c_unionchest_notice")
public class CrossUnionChestNoticeData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "商会id", select = true, update = true)
    private String unionId;
    @FieldTypeAnnotation(desc = "宝箱id", select = true, update = true)
    private long boxId;
    @FieldTypeAnnotation(desc = "宝箱类型")
    private int boxType;
    @FieldTypeAnnotation(desc = "分享玩家名称")
    private String shareName;
    @FieldTypeAnnotation(desc = "开箱玩家")
    private long opendUserId;
    @FieldTypeAnnotation(desc = "开箱玩家名称")
    private String opendName;
    @FieldTypeAnnotation(desc = "开箱时间")
    private long opendTime;
    @FieldTypeAnnotation(desc = "开箱奖励")
    private String rewards;

    public CrossUnionChestNoticeData(int activityId, String unionId, long boxId, int boxType, String shareName, long opendUserId, String opendName, long opendTime, String rewards) {
        this.activityId = activityId;
        this.unionId = unionId;
        this.boxId = boxId;
        this.boxType = boxType;
        this.shareName = shareName;
        this.opendUserId = opendUserId;
        this.opendName = opendName;
        this.opendTime = opendTime;
        this.rewards = rewards;
        setInsertOption();
    }

    public CrossUnionChestNoticeData() {
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public long getBoxId() {
        return boxId;
    }

    public void setBoxId(long boxId) {
        this.boxId = boxId;
    }

    public int getBoxType() {
        return boxType;
    }

    public void setBoxType(int boxType) {
        this.boxType = boxType;
    }

    public String getShareName() {
        return shareName;
    }

    public void setShareName(String shareName) {
        this.shareName = shareName;
    }

    public long getOpendUserId() {
        return opendUserId;
    }

    public void setOpendUserId(long opendUserId) {
        this.opendUserId = opendUserId;
    }

    public String getOpendName() {
        return opendName;
    }

    public void setOpendName(String opendName) {
        this.opendName = opendName;
    }

    public long getOpendTime() {
        return opendTime;
    }

    public void setOpendTime(long opendTime) {
        this.opendTime = opendTime;
    }

    public String getRewards() {
        return rewards;
    }

    public void setRewards(String rewards) {
        this.rewards = rewards;
    }
}
